package com.liuwei.msmall.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.liuwei.msmall.common.dto.mq.SeckillOrderTo;
import com.liuwei.msmall.common.utils.PageUtils;
import com.liuwei.msmall.order.entity.OrderEntity;
import com.liuwei.msmall.order.vo.*;

import java.util.List;
import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * 订单
 *
 * @author llww
 * @email 2456888577@qq.com
 * @date 2021-02-25 17:46:15
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    OrderConfirmVo getOrderConfirmData() throws ExecutionException, InterruptedException;

    OrderSubmitRespVo submitOrder(OrderSubmitVo vo);

    void orderClose(OrderEntity orderEntity);

    List<OrderListVo> getOrderList(Integer status);

    OrderEntity getOrderByOrderSn(String orderSn);

    void deleteByOrderSn(String orderSn);

    PayVo getOrderPayInfo(String orderSn);

    String handlePayResult(PayAsyncVo vo);

    void createSeckillOrder(SeckillOrderTo seckillOrderTo);

}

